import request from "@/utils/request";


/**
 * 查找所有课程信息
 * @param current
 * @returns {AxiosPromise}
 */
export function getAllCourse(current) {
  return request({
    url: '/service-oss/course/getAllCourse',
    method: 'post',
    params:{
      current
    }
  })
}

/**
 * 驳回文章信息
 * @param id 文章id信息
 * @returns {AxiosPromise}
 */
export function rejectCourse(id) {
  return request({
    url: '/service-oss/course/rejectCourse',
    method: 'post',
    params:{
      id
    }
  })
}

/**
 * 删除文章信息
 * @param id
 * @returns {AxiosPromise}
 */
export function deleteCourse(id) {
  return request({
    url: '/service-oss/course/deleteCourse',
    method: 'post',
    params:{
      id
    }
  })
}
